<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
    <style>
      #d1 {
        width: 120px;
        height: 120px;
        background-color: yellow;
      }
      #d2 {
        width: 100px;
        height: 100px;
        background-color: blue;
      }
      #d3 {
        width: 60px;
        height: 60%;
        background-color: red;
      }
    </style>
    <script src="./js/jquery-3.6.0.js"></script>
  </head>
  <body>
    <div id="d1">
      <div id="d2">
        <div id="d3"></div>
      </div>
    </div>
  </body>
</html>
<script>
  $('#d1').click(function () {
    alert('1111111111')
  })
  $('#d2').click(function () {
    alert('22222')
    event.cancelBubble = true
  })
  $('#d3').click(function () {
    alert('33333')
    event.stopPropagation()
  })
</script>
